//
//  CustomUIPageControl.m
//  UI04_Switch_Slider_SegmentedCintrol
//
//  Created by aaaaaa on 16/6/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomUIPageControl.h"

@implementation CustomUIPageControl

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setProperty];
    }
    return self;
}

- (void)setProperty
{
    //设置有几个点
    self.numberOfPages = 5;
    //设置初始状态哪个点被选中
    self.currentPage = 2;
    //设置圆点的颜色
    self.pageIndicatorTintColor = [UIColor lightGrayColor];
    //设置当前圆点的颜色
    self.currentPageIndicatorTintColor = [UIColor greenColor];
    
}


@end
